package ru.papergames.battleserver.network.clientpackets.flashuser;

import ru.papergames.battleserver.model.battle.AbstractBattle;
import ru.papergames.battleserver.model.battle.BattlePlayer;
import ru.papergames.battleserver.model.battle.BattlePlayerAction;

/**
 * Date: 21.05.12 9:17
 *
 * @author Alexander Troshanin
 */
public class BattleTurnFinish extends AbstractBattleAction {

    @Override
    protected void readImpl() {
    }

    @Override
    protected void runImplInternal(AbstractBattle battle, BattlePlayer battlePlayer) {
        battle.executeSynchronizedAction(battlePlayer, BattlePlayerAction.FORCE_TURN_FINISH, new Object[] {});
    }

    @Override
    public String getType() {
        return "[c] BattleMoveBall[" + BATTLE_TURN_FINISH_PACKET_ID + "]";
    }
}
